package edu.xmut.yuepaibackend.controller;

import edu.xmut.yuepaibackend.model.vo.UserInfoVO;
import edu.xmut.yuepaibackend.service.UserService;
import edu.xmut.yuepaibackend.utils.R;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {


    @Resource
    private UserService userService;


    @GetMapping("/mine")
    public R mine() {
        UserInfoVO userInfoVO = userService.getMyInfo();
        return R.ok(userInfoVO);
    }
}
